package com.freedom.mediaplayer.until;

import android.content.Context;
import android.content.SharedPreferences;

public class SharedPrefencetUntil {
	public static void setSharedPrefence(Context ct, int curPosition) {
		SharedPreferences preferences=ct.getSharedPreferences("position",Context.MODE_PRIVATE);
		SharedPreferences.Editor editor=preferences.edit();
		editor.putInt("curposition", curPosition);
		editor.commit();
	}
	public static int getSharedPrefence(Context ct) {
		SharedPreferences sharedPreferences = ct.getSharedPreferences("position", Context.MODE_PRIVATE);
	    int curPosition = sharedPreferences.getInt("curposition", 0);
		return curPosition;
		
	}
 
}
